<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>21_正则表达式-案例练习</title>
    </head>
    <body>
        <script>
            // lijing1@atguigu.cn
            // lijing@163.com
            // 1233333@qq.com
            // li_jing@atguigu.com
            // action@xxx.com.cn


            var reg = /^\w+@[0-9a-z]+(\.[a-z]{2,3}){1,2}$/;

            console.log(reg.test('lijing1@atguigu.cn'));


        </script>
    </body>
</html>